package fun.codefarmer.pm.mapper;

import fun.codefarmer.pm.model.DepartMent;

import java.util.List;

/**
 * 
 * @ Descriotion TODO
 * @ author  codeFarmer_z
 * @ 公众号：码农教程
 * @ Date 2022/3/26 21:47
 **/
public interface DepartMentMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(DepartMent record);

    int insertSelective(DepartMent record);

    DepartMent selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(DepartMent record);

    int updateByPrimaryKey(DepartMent record);

    List<DepartMent> getAllDepartmentByParentId(Integer i);

    void addDep(DepartMent department);

    void deleteDepById(DepartMent department);

    List<DepartMent> getAllDepartmentWithOutChildren();

}